home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / mu17_ext.zip / ERROR.C < prev    next >
C/C++ Source or Header  |  1994-03-07  |  735b  |  29 lines

  1. #include <exec/types.h>
  2. #include <exec/PORTS.h>
  3. #include <dos/dos.h>
  4. #include <clib/exec_protos.h>
  5. #include <clib/alib_protos.h>
  6. #include <stdio.h>
  7. #include <intuition/intuition.h>
  8. #include <proto/all.h>
  9. #include <string.h>
  10. #include <stdlib.h>
  11.  
  12. #include "headers/error_proto.h"
  13.  
  14. char GMsg[100] = "this is the global message";
  15.  
  16. struct TextAttr  TOPAZ180  = {(STRPTR)"topaz.font",TOPAZ_EIGHTY,0,0};
  17. struct IntuiText Neg = {3,0,JAM2,0,0,&TOPAZ180,"NO!!",NULL};
  18. struct IntuiText Pos = {3,0,JAM2,0,0,&TOPAZ180,"YES!",NULL};
  19. struct IntuiText Act = {3,0,JAM2,0,0,&TOPAZ180,GMsg,NULL};
  20.  
  21. BOOL Error(a)
  22. char *a;
  23. {
  24.     strcpy(GMsg,a);
  25.     if (AutoRequest(NULL,&Act,&Pos,&Neg,IDCMP_GADGETUP,IDCMP_GADGETUP,150,100))
  26.         return TRUE;
  27.     else return FALSE;
  28. }
  29.